package edu.scau.divineplace.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;

/**
 * @Author: x1aolone
 * @Date: 2020/8/19 21:28
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CommentTargetTypeEnum implements BaseEnum{

    /**
     *  评论方向
     */
    ROLE(1, "人物评论"),
    JOURNAL(2, "日志评论");

    /**
     * EnumValue标记数据库里面存的是type
     */
    @EnumValue
    @Getter
    private final Integer type;
    @Getter
    private final String description;

    CommentTargetTypeEnum(Integer type, String description) {
        this.type = type;
        this.description = description;
    }

}
